import urllib.request
import pandas as pd
from bs4 import BeautifulSoup

djpage = 0

http = "https://movie.douban.com/top250"

with urllib.request.urlopen(http) as response:
    html = response.read()

    bf = BeautifulSoup(html, "lxml")
    title = bf.title.string



    # 将数据保存到Excel文件中
    # df.to_excel('./xlsx/q.xlsx', index=False)
